﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace CPlase
{
    public class ListPage<T>
    {
        public string LastKey = "";

        public T LastItem;
        
        public int Limit;
        public List<T> Items;
        public bool IsFirstPage = false;

        public bool HasPrev { get { return !IsFirstPage && Items != null && Items.Count > 0; } }

        public bool HasNext { get { return LastItem != null; } }
        
    }
}